package com.hskn.hss.module.empWorkPoints.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Getter;
import lombok.Setter;
import lombok.experimental.Accessors;

import java.io.Serializable;
import java.math.BigDecimal;
import java.util.Date;

/**
 * <p>
 * 人员作业点位表
 * </p>
 *
 * @author zcy
 * @since 2021-12-23
 */
@Getter
@Setter
@Accessors(chain = true)
@TableName("emp_work_points")
public class EmpWorkPoints implements Serializable {

    private static final long serialVersionUID = 1L;

    /**
     * id
     */
    @TableId(value = "id", type = IdType.ASSIGN_ID)
    private String id;

    /**
     * 经度
     */
    @TableField("lng")
    private BigDecimal lng;

    /**
     * 纬度
     */
    @TableField("lat")
    private BigDecimal lat;

    /**
     * 计划ID
     */
    @TableField("grid_id")
    private String gridId;

    /**
     * 作业日期
     */
    @TableField("create_date")
    private Date createDate;

    public EmpWorkPoints() {
    }

    public EmpWorkPoints(String id, BigDecimal lng, BigDecimal lat, String gridId, Date createDate) {
        this.id = id;
        this.lng = lng;
        this.lat = lat;
        this.gridId = gridId;
        this.createDate = createDate;
    }
}
